﻿using Ewell.Interface.Common.Model.Constant;
using Ewell.Interface.Common.Model.GateWay.Dto.Basic;
using System;

namespace Ewell.Interface.Common.Model.GateWay.GateWayUriInfo
{
    /// <summary>
    /// 账户相关api
    /// </summary>
    public class AccountDubboService : GateWayUri
    {
        public override string url => "dubbo/cc.ewell.his.basic.service.inter.dubbo.AccountDubboService";
        public GateWayMethod queryAccountByOwnerNo => new QueryAccountByOwnerNo(url);
    }

    public class QueryAccountByOwnerNo : GateWayMethod
    {
        public QueryAccountByOwnerNo(string baseUrl) : base(baseUrl)
        {
        }

        public override string methodName => "queryAccountByOwnerNo";

        public override string paramClass => "cc.ewell.his.basic.upon.vo.account.QueryAccountByOwnerNoRequest";

        public override DubboParamType paramType => DubboParamType.defaultParam;

        public override Type requestParamType => typeof(QueryAccountByOwnerNoRequest);

        public override Type responseParamType => typeof(QueryAccountByOwnerNoResponse);
    }
}
